﻿<table>
<tr>
<?php echo form_open('adminProfiles/deleteStudies/'.$id); ?>
	<td colspan="2"><h2 class="title">Насоки</h2></td>
	<td><input type="submit" name="submit" value="Избриши селектирани" /></td>
</tr>
<tr><td colspan="2"><h2>Промени насоки</h2></td></tr>
<?php 
	foreach ($studies as $study)
	{
		echo "<tr><td colspan='2'>".$study->name."</td>";
		echo "<td><input type='checkbox' name=".$study->idSprPk." value=".$study->idSprPk." /></td></tr>";
	}	
?>
<?php echo form_close(); ?>
<tr><td colspan="2"><h2>Додади насока</h2></td></tr>

<?php echo form_open('adminProfiles/addStudy/'.$id); ?>
<tr>
	<td>Насока:</td>
	<td>
		<select name="study" >
			<?php 
				foreach($allStudies as $stu)
					echo "<option value='".$stu->idStuFk."'>".$stu->name."</option>";
			?>
		</select>
	</td>
</tr>
<tr>
	<td colspan="2"><input type="submit" name="submit" value="Додади" /></td>
</tr>
<?php echo form_close(); ?>

</table>